#include "GPIO_HAL_KA.h"

void vfnGPIO_Init (void)
{
    /*
    PIN NO LONGER USED
    // Configure the pin connected to the MC34671's PPR pin as an input with a pullup resistor
    MC34671_PPR_DD =    GPIO_INPUT;
    MC34671_PPR_PULL =  GPIO_PULL_ENABLE;
    MC34671_PPR_PUD =   GPIO_PULLUP;
    */
    // Configure the pin connected to the MC34671's FAST pin as an input with a pullup resistor
    MC34671_FAST_DD =   GPIO_INPUT;
    MC34671_FAST_PULL = GPIO_PULL_ENABLE;
    MC34671_FAST_PUD =  GPIO_PULLUP;
    
    // Configure the pin connected to the MC34671's CHG pin as an input with a pullup resistor
    MC34671_CHG_DD =    GPIO_INPUT;
    MC34671_CHG_PULL =  GPIO_PULL_ENABLE;
    MC34671_CHG_PUD =   GPIO_PULLUP;
    
    // Configure the pin connected to the MC34671's ENABLE pin as an output
    MC34671_EN =	1;	   // Start the MC34671 as disabled
    MC34671_EN_DD =     GPIO_OUTPUT;
 
    // Configure the pin driving the MOSFET that connects a 47k5 resistor as an output
    SWITCH_47K5 = 0;
    SWITCH_47K5_DD =   GPIO_OUTPUT;

    // Configure the pin driving the MOSFET that connects a 8k87 resistor as an output
    SWITCH_8K87 = 0;
    SWITCH_8K87_DD =    GPIO_OUTPUT;
       
}